<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="Robots" content="all" />
<meta name="Googlebot" content="all" />
<meta name="Author" content="内蒙古呼和浩特市第二中学网校" />
<meta name="Copyright" content="内蒙古呼和浩特市第二中学版权所有" />
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}public.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}list-download.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}jquery.sGallery.js"></script>
<script type="text/javascript" src="{JS_PATH}search_common.js"></script>
<style type="text/css">
	.brd {text-align:center; vertical-align:middle; margin-top:10px;}
</style>
</head>
<body>
{template "content","header_common"}
<div id="page">
{php $door=$_REQUEST["door"];}
{if $door==1}
{php $a="免费版";}
{/if}
{if $door==2}
{php $a="收费版";}
{/if}
{if $door==3}
{php $a=0;}
{/if}
{if !(isset($door))}
{php $a=0}
{/if}
<div id="boardbox">
	<div class="crumb">
		<b>当前位置：</b>
		<a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)} 列表
	</div>
	{php $typeid=intval($_GET['typeid']);}
	{php $readpoint = isset($_GET['readpoint']) ? intval($_GET['readpoint']) : -1;}
	<div class="leftside">
		<span class="hotboard">
			<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">下载分类</span></h3>
			<span class="outerbox">
				<ul>
				<li><a href="index.php?m=content&c=index&a=lists&catid={$catid}" title="全部分类">全部分类</a></li>
				{pc:content action="cattype" catid="$catid" order="typeid ASC" num="5"}
				{loop $data $r}
					<li><a href="{$r[url]}" title="{$r[name]}">{str_cut($r[name],30)}</a></li>
				{/loop}
				{/pc}
				</ul>
			</span>
		</span><!-- css class hotboard end -->
				<span class="seboard">
			<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">下载排行</span></h3>
			<span class="outerbox">
				{pc:content action="hits" catid="$catid" num="20" order="views DESC" cache="3600"}
				<ul>
					{loop $data $r}
						<li><a href="{$r[url]}" target="_blank"> {str_cut($r[title],40,'...')}</a></li>
                                                                                              					{/loop}
				</ul>
				{/pc}
			</span>
		</span>
		
		<span class="hotboard">
			<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">频道本月排行</span></h3>
			<span class="outerbox">
				{pc:content action="hits" catid="$catid" num="8" order="monthviews DESC" cache="3600"}
				<ul class="content rank">
					{loop $data $r}
					<li><span>已被<b>{number_format($r[monthviews])}</b>人访问</span><a href="{$r[url]}"{title_style($r[style])} title="{$r[title]}">{str_cut($r[title],26,'...')}</a></li>
					{/loop}
				</ul>
				{/pc}
			</span>
		</span>
		
		<span class="seboard">
			<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">推荐下载</span></h3>
			<span class="outerbox">
				<ul class="content rank">
					{pc:content  action="position" posid="5" order="listorder DESC" num="4"}
					{loop $data $r}        
					<li><a href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],34)}</a></li>
					{/loop}  
					{/pc} 
				</ul>
			</span>
		</span>
	</div><!-- css class leftside end -->
	
	<div class="rightside">
		<span class="listbox">
			<h3>
				资源类型：
				<a href="http://www.2zwx.com/index.php?m=content&c=index&a=lists&catid={$catid}&door=1">免费</a> | 
				<a href="http://www.2zwx.com/index.php?m=content&c=index&a=lists&catid={$catid}&door=2">收费</a> | 
				<a href="http://www.2zwx.com/index.php?m=content&c=index&a=lists&catid={$catid}&door=3">全部</a>
			</h3>
			<ul>
				{pc:content action="lists" catid="$catid" num="15" order="id DESC"}
				{loop $data $r}
                {if ($door=1||$door=2)}
                  {if $r[copytype]==$a}
                    <li>
                        <div class="contbox">
                            <span class="himg">
                                <a href="{$r[url]}" target="_blank">
                                    <img src="{thumb($r[thumb], 105, 125)}" alt="{$r[title]}" />
                                </a>
                            </span>
                            <span class="intro">
                                <a href="{$r[url]}" title="{$r[title]}" target="_blank">{str_cut($r[title],60)}</a>
                                <span class="info"><b>星级:{$r[stars]}</b><b>更新时间:{date('Y-m-d',$r[inputtime])}</b></span>
                                <span class="cont">{$r[description]}</span>
                                <span class="dinfo"><b>文件大小:{$r[filesize]}</b></span>
                            </span>
                        </div>
                    </li>
                  {/if}
                {else}
                    <li>
                        <div class="contbox">
                            <span class="himg">
                                <a href="{$r[url]}" target="_blank">
                                    <img src="{thumb($r[thumb], 105, 125)}" alt="{$r[title]}" />
                                </a>
                            </span>
                            <span class="intro">
                                <a href="{$r[url]}" title="{$r[title]}" target="_blank">{str_cut($r[title],60)}</a>
                                <span class="info"><b>星级:{$r[stars]}</b><b>更新时间:{date('Y-m-d',$r[inputtime])}</b></span>
                                <span class="cont">{$r[description]}</span>
                                <span class="dinfo"><b>文件大小:{$r[filesize]}</b></span>
                            </span>
                        </div>
                    </li>
                {/if}
				{/loop}
				{/pc}
			</ul>
			<div id="pages" class="text-c">{$pages}</div>
		</span>
	</div><!-- css class rightside end -->
	
	<div class="clear">&nbsp;</div>
</div><!-- css id boardbox end -->

{template "content","footer_cat"}